package com.example.demolearn.designPatterns.agent;

import org.springframework.cglib.core.DebuggingClassWriter;
import org.springframework.cglib.proxy.Enhancer;

public class TestMain {
    public static void main(String[] args) {
        Computer computer = new Computer();


        CGLIBTest cglibTest = new CGLIBTest();
        Computer instance = (Computer)cglibTest.getInstance(computer);
        String name = "我是叶杰";

        instance.test(name);
        instance.test2();
    }

}
